/*
 * Copyright (c) 2025 李伟国
 * SQL-API is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
 * KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package com.moyu.sql.response;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.http.HttpStatus;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class ErrorResponseData  extends ResponseData{

    public ErrorResponseData(){
        super(HttpStatus.BAD_REQUEST.value(), false, "请求失败", null);
    }

    public ErrorResponseData(Object data){
        super(HttpStatus.BAD_REQUEST.value(), false, "请求失败", data);
    }

    public ErrorResponseData(String message){
        super(HttpStatus.BAD_REQUEST.value(), false, message, null);
    }

    public ErrorResponseData(Integer code, Object data){
        super(code, false, "请求失败", data);
    }

    public ErrorResponseData(String message, Object data){
        super(HttpStatus.BAD_REQUEST.value(), false, message, data);
    }

    public ErrorResponseData(Integer code, String message, Object data){
        super(code, false, message, data);
    }
}
